﻿@model GameSchool.Models.Level

<script src="@Url.Content("~/Scripts/jquery-1.5.1.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="/Content/css/forms.css" />
@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Nýtt borð</legend>

        <div class="editor-label">
            @Html.HiddenFor(model => model.LevelNr)
        </div>

        <div class="editor-label">
            <h2>Upphafsdagsetning:</h2>
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Date_start)
            @Html.ValidationMessageFor(model => model.Date_start)
        </div>

        <div class="editor-label">
            <h2>Lokadagsetning:</h2>
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Date_finish)
            @Html.ValidationMessageFor(model => model.Date_finish)
        </div>

        <div class="editor-label">
            @Html.HiddenFor(model => model.CourseID)
        </div>

        <p>
            <input type="submit" value="Bæta við borði" />
        </p>
    </fieldset>
}

